package cnpm.service.impl;

import java.util.List;

import cnpm.dao.ConditionSearchDAO;
import cnpm.dao.impl.ConditionSearchDAOImpl;
import cnpm.entity.ConditionSearch;
import cnpm.entity.User;
import cnpm.service.ConditionSearchService;

public class ConditionSearchServiceImpl implements ConditionSearchService{

	private ConditionSearchDAO csDAO;
	
	public ConditionSearchServiceImpl(){
		csDAO = new ConditionSearchDAOImpl();
	}
	
	@Override
	public boolean saveOrUpdateConditionSearch(ConditionSearch cs) {
		return csDAO.saveOrUpdateConditionSearch(cs);
	}
	@Override
	public List<ConditionSearch> getAllConditionSearch(User user) {
		return csDAO.getAllConditionSearch(user);
	}

	@Override
	public boolean isExitsConditionSearch(String condition) {
		return csDAO.isExitsConditionSearch(condition);
	}

}
